import React, { lazy } from 'react'
import {
    HomeOutlined,
    ColumnWidthOutlined,
    HeatMapOutlined,
    AlignLeftOutlined,
    ClockCircleOutlined,
    MenuOutlined,
    UserOutlined

} from '@ant-design/icons'
const menus = [
    {
        path:'/',
        title:'系统首页',
        icon:<HomeOutlined />,
        component:lazy(()=> import('../views/home/Index'))
    },
    {
        path:'/carouselmanagement',
        title:'轮播图管理',
        icon:<ColumnWidthOutlined />,
        Children:[
          {
            path:'/carouselmanagement/list',
            title:'轮播图列表',
            icon:<AlignLeftOutlined />,
            component:lazy(() => import('../views/carouse/Index'))
          }
        ]
    },
    {
        path:'/quicknavmanagement',
        title:'快捷导航管理',
        icon:<HeatMapOutlined />,
        Children:[
            {
              path:'/quicknavmanagement/list',
              title:'导航列表',
              icon:<AlignLeftOutlined />,
              component:lazy(()=> import('../views/navigator/List'))
            },
            {
                path:'/quicknavmanagement/category',
                title:'导航分类',
                icon:<AlignLeftOutlined />,
                component:lazy(()=>import('../views/navigator/Category'))
            },
            {
                path:'/quicknavmanagement/homelist',
                title:'首页导航',
                icon:<AlignLeftOutlined />,
                component:lazy(()=>import('../views/navigator/HomeList'))
            },
          ]
    },
    {
        path:'/seckillmanager',
        title:'秒杀管理',
        icon:<ClockCircleOutlined />,
        Children:[
          {
            path:'/seckillmanager/list',
            title:'首页秒杀列表',
            icon:<AlignLeftOutlined />,
            component:lazy(()=>import('../views/seckill/List'))
          }
        ]
    },
    {
      path: '/usermanager',
      title: '用户管理',
      icon: <UserOutlined />,
      Children: [
        {
          path: '/usermanager/list',
          title: '用户列表',
          icon: <MenuOutlined />,
          component: lazy(() => import('./../views/user/List'))
        }
      ]
    },
    {
      path: '/setting',
      title: '设置',
      icon: <MenuOutlined />,
      component: lazy(() => import('../views/setting/Index')),
      meta: { //设置元信息 可以隐藏这一项 不被渲染
        hidden: true
      }
    }



]

export default menus